<template>
  <div>
    <el-row class="home" :gutter="20">
      <el-col :span="8" style="margin-top: 20px">
        <el-card shadow="hover">
          <div class="user">
            <img :src="userImg" />
            <div class="userinfo">
              <p class="name">Admin</p>
              <p class="access">超级管理员</p>
            </div>
          </div>
          <div class="chart">
            <p class="chartour">联系我们</p>
            <p class="chartour">
              <el-button
                type="primary"
                size="medium "
                icon="el-icon-message"
                plain
                @click="goTarget('https://gitee.com/wuyao-kejiu/his')"
                >发送邮件</el-button
              >
            </p>
            <p class="chartour">
              <el-button
                size="medium "
                icon="el-icon-s-comment"
                plain
                @click="goTarget('https://blog.csdn.net/m0_52289494?type=blog')"
                >一键入群</el-button
              >
              
            </p>
          </div>
        </el-card>
        <el-card style="margin-top: 20px; height: 400px">
          <div class="versionInformation">
            <div class="radio">
              <span>版本信息排序：</span>
              <el-radio-group v-model="reverse">
                <el-radio :label="true">最近更新</el-radio>
                <el-radio :label="false">发展历史</el-radio>
              </el-radio-group>
            </div>

            <el-timeline :reverse="reverse">
              <el-timeline-item
                v-for="(activity, index) in activities"
                :key="index"
                :timestamp="activity.timestamp"
              >
                {{ activity.content }}
              </el-timeline-item>
            </el-timeline>
          </div>

        </el-card>
      </el-col>
      <el-col :span="16" style="margin-top: 20px">
        <div style="text-align: center">
          <div style="margin-bottom: 20px">
            <span class="tearm"> 团队组成 </span>
          </div>
        </div>
        <div class="num">
          <el-card
            v-for="(item, index) in countData"
            :key="index"
            :body-style="{ display: 'flex', padding: 0 }"
          >
            <i
              class="icon"
              :class="`el-icon-${item.icon}`"
              :style="{ background: item.color }"
            ></i>
            <div class="detail">
              <p class="num">{{ item.name }}</p>
              <!-- <p class="txt">{{item.job}}</p> -->
            </div>
          </el-card>
        </div>
        <div style="text-align: center">
          <div style="margin-bottom: 20px">
            <span class="tearmInvate"> 期待你的加入 </span>
          </div>
        </div>
      </el-col>
      <el-col :span="16" style="margin-top: 20px">
        <el-card style="height: 585px" class="lastModel">
          <div style="text-align: center">
            <div style="margin-bottom: 20px">
              <span class="tearmInvate"> 技术选型 </span>
            </div>
          </div>
          <el-row>
            <el-col :span="12" style="text-align: center">
              <h2>大数据技术</h2>
              <ul>
                <li>SpringBoot</li>
                <li>Spring Security</li>
                <li>JWT</li>
                <li>MyBatis</li>
                <li>Druid</li>
                <li>Fastjson</li>
                <li>SpringBoot</li>
                <li>Spring Security</li>
                <li>JWT</li>
                <li>MyBatis</li>
                <li>Druid</li>
                <li>Fastjson</li>
                <li>...</li>
              </ul>
            </el-col>
            <el-col :span="12" style="text-align: center">
              <h2>前后端技术</h2>
              <ul>
                <li>SpringBoot</li>
                <li>Spring Security</li>
                <li>JWT</li>
                <li>MyBatis</li>
                <li>Druid</li>
                <li>Fastjson</li>
                <li>Vue</li>
                <li>Vuex</li>
                <li>Element-ui</li>
                <li>Axios</li>
                <li>Sass</li>
                <li>Quill</li>
                <li>...</li>
              </ul>
            </el-col>
          </el-row>
          <el-row>
          <div class="evaluate" style="margin-top: 20px" >
            <span> 对我们的的评价 </span>
            <div class="block" style="margin-top: 10px;margin-bottom: 10px">
              <span class="demonstration"></span>
              <el-rate v-model="value1"></el-rate>
            </div>
            <!-- <span> 对我们的建议 </span> -->
      
          </div>
          </el-row>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      value1:1,
      userImg: require("../assets/images/1.png"),
      value: 2,
      iconClasses: ["icon-rate-face-1", "icon-rate-face-2", "icon-rate-face-3"], // 等同于 { 2: 'icon-rate-face-1', 4: { value: 'icon-rate-face-2', excluded: true }, 5: 'icon-rate-face-3' }

      countData: [
        {
          name: "鹏哥",
          job: "大数据建模",
          icon: "user-solid",
          color: "#2ec7c9",
        },
        {
          name: "LiGou",
          job: "后端与逻辑业务",
          icon: "user-solid",
          color: "#ffb980",
        },
        {
          name: "zhezhi",
          job: "前端与数据库业务",
          icon: "user",
          color: "#5ab1ef",
        },
      ],

      reverse: true,
      activities: [
        {
          content: "创意构建",
          timestamp: "2022-02-15",
        },
        {
          content: "思路与技术选型",
          timestamp: "2022-02-20",
        },
        {
          content: "组成开发团队",
          timestamp: "2022-03-01",
        },
        {
          content: "项目技术框架构建",
          timestamp: "2022-03-05",
        },
        {
          content: "功能筛选",
          timestamp: "2022-03-09",
        },
        {
          content: "分析预测模型构建完成",
          timestamp: "2022-03-15",
        },
        {
          content: "模型调优与数据库搭建",
          timestamp: "2022-03-20",
        },
        {
          content: "后台基础完成",
          timestamp: "2022-03-24",
        },
        {
          content: "前台完成",
          timestamp: "2022-03-28",
        },
      ],
    };
  },
  methods:{
  }
};
</script>

<style scoped lang="less">
.home {
  .user {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    img {
      width: 150px;
      height: 150px;
      border-radius: 50%;
      margin-right: 40px;
    }
    &info {
      .name {
        font-size: 32px;
        margin-bottom: 10px;
      }
      .access {
        color: #999999;
      }
    }
  }

  .versionInformation {
    .radio {
      margin-block: 20px;
    }
  }

  .chart {
    p {
      line-height: 28px;
      font-size: 16px;
      color: #999999;
      span {
        color: #666666;
        margin-left: 60px;
      }
    }
    .chartour {
      font-weight: 700;
      text-align: center;
    }
  }


  .tearm {
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
    color: rgb(22, 116, 223);
    text-align: center;
    letter-spacing: 10px;
  }
  .tearmInvate {
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
    color: rgb(16, 226, 241);
    text-align: center;
    letter-spacing: 10px;
  }


  .evaluate {
    font-size: 24px;
    line-height: 28px;
    font-weight: 500;
    color: rgb(74, 162, 245);
    text-align: center;
    letter-spacing: 10px;
  }

  .num {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    .el-card {
      width: 32%;
      margin-bottom: 20px;
    }
    .icon {
      font-size: 30px;
      width: 80px;
      height: 80px;
      text-align: center;
      line-height: 80px;
      color: #fff;
    }
    .detail {
      height: 30px;
      margin-left: 15px;
      // display: flex;
      flex-direction: column;
      justify-content: center;
      .num {
        font-size: 24px;
        margin-bottom: 10px;
      }
      .txt {
        font-size: 14px;
        text-align: center;
        color: #999999;
      }
    }
  }
  .graph {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    .el-card {
      width: 48%;
    }
  }
}
</style>